//run.cpp
#include <iostream>
#include "Point.h"
#include "Rectangle.h"
using namespace std;

int main() {
    cout << "Point Test" << endl;
    Point p1(10, 20);
    Point p2(30, 10);
    Point p3(p1);
    cout << "p1：";
    p1.Print();
    cout << "\n" << "p2：";
    p2.Print();
    cout << "\n" << "p3：";
    p3.Print();
    cout << "\n重新设置后：";
    p1.Set(-10, -20);
    cout << "\n" << "p1：";
    p1.Print();
    p2.Set(-30, -10);
    cout << "\n" << "p2：";
    p2.Print();
    p3.Set(-50, 100);
    cout << "\n" << "p3：";
    p3.Print();

    cout << "\n\nRectangle Test" << endl;

    Rectangle r1(p1, p3);
    Rectangle r2(-10, 0, 10, 20);
    Rectangle r3(r1);
    cout << "r1：" << endl;
    r1.Print();
    cout << "r2：" << endl;
    r2.Print();
    cout << "r1：" << endl;
    r1.Print();
    cout << "r3：" << endl;
    r3.Print();

    return 0;
}